import baseUrl from './base-url-config'

const { product: prefix } = baseUrl

export default {
  // 查询访视列表
  getReportHistoryAPI: {
    url: `${prefix}/edc/report/page`,
    method: 'get',
  },
  // 下载报告
  downloadHistoryAPI: {
    url: `${prefix}/edc/report/download`,
    method: 'get',
    responseType: 'blob',
  },

  // 查询已发布的中心列表
  qryPublishedCoreList: {
    url: `${prefix}/edc/builder/project/coreDatabaseCRF/getCoreDatabaseUpVersion`,
    method: 'GET',
    hasLoading: false
  },

  // 查询版本选择列表
  qryTargetVersionList: {
    url: `${prefix}/edc/builder/project/coreDatabaseCRF/databaseCRFVersionUpTable`,
    method: 'GET',
    hasLoading: false
  },

  // 导出--Excel数据集(父子表合并)
  exoprtExcelDatasetAll: {
    url: `${prefix}/edc/subject/summary/exportDataSet`,
    method: 'post',
  },

  // 导出--空白病例报告导出（单一册）
  exoprtBlankCaseReport: {
    url: `${prefix}/edc/report/exportBlankCase`,
    method: 'post',
  },

  // 根据中心id获取受试者code
  getSubJIDAPI: {
    url: `${prefix}/edc/subject/manage/getSubJID`,
    method: 'post',
  },
}
